package com.jungle.client.event;

import javafx.event.Event;
import javafx.event.EventTarget;
import javafx.event.EventType;

public class SaveEvent extends Event {

    public static final EventType<Event> SAVE = new EventType<>("save");

    private int rowIndex;

    public SaveEvent(int rowIndex) {
        super(SAVE);
        this.rowIndex = rowIndex;
    }

    public SaveEvent(Object o, EventTarget eventTarget) {
        super(o, eventTarget, SAVE);
    }

    public int getRowIndex() {
        return rowIndex;
    }
}
